import api from "../../utils/request.js";
import {API1_URL} from '../../utils/baseURL.js'

export const getReserveList = async (params) => {
    const response = await api({
        url: API1_URL + "/booking",
        method: 'get',
        params
    });
    return response.data;
};

export const putReserveApply = async (id) => {
    const response = await api({
        url: API1_URL + `/booking/apply/${id}`,
        method: 'put',
    });
    return response.data;
};

export const putReserveReject = async (id) => {
    const response = await api({
        url: API1_URL + `/booking/reject/${id}`,
        method: 'put',
    });
    return response.data;
};

export const putReserveExamine = async (data) => {
    const response = await api({
        url: API1_URL + "/booking/examine",
        method: 'put',
        data
    });
    return response.data;
};